<template>
  <div id="user">
    <s-nav-bar title="账户"></s-nav-bar>
    <section class="acinfo">
      <img src="/ibooks/img/default.png">
			<h2>m15359708510
				<span class="lv">Lv 1</span>
			</h2>
			<p>登录账号：m15359708510@163.com</p>
    </section>
    <section class="acmore">
      <div class="mybook">
        <p>我的书架</p>
        <p>0本</p>
        <p><van-icon name="arrow" /></p>
      </div>
      <div class="logout">
        <a>退出登录</a>
      </div>
    </section>
  </div>
</template>

<script>
import sNavBar from '@/components/sNavBar.vue'
export default {
  components:{
    sNavBar
  }
}
</script>

<style>
body,#user{
  background: #f5f5f5;
}
.acinfo {
  height: 70px;
  background-color: #fff;
  margin: 0 0 10px 0;
  padding: 15px;
}
.acinfo img {
  float: left;
  margin: 0 15px 0 0;
  border-radius: 50%;
  width: 70px;
  height: 70px;
}
.acinfo h2 {
  margin: 6px 0 8px;
  font-size: 17px;
  color: #626358;
  height: 24px;
  line-height: 24px;
  overflow: hidden;
}
.acinfo h2 .lv {
  font-size: 12px;
  padding: 0 2px;
  color: #fff;
  background-color: #e43737;
  border-radius: 3px;
  font-weight: normal;
}
.acinfo p {
  color: #aba59a;
  line-height: 24px;
  font-size: 12px;
}
.mybook{
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 10px;
  margin-bottom: 10px;
}
.logout{
  padding: 15px 15px;
  height: 60px;
  box-sizing: border-box;
  text-align: center;
}
.logout>a{
  display: inline-block;
  line-height: 30px;
  width: 100%;
  background: #ff976a;
  color: #fff;
  font-size: 15px;
  border-radius: 5PX;
}
.logout,.mybook{
  background: #fff;
  font-size: 16px;
}
.mybook>p{
  flex: 1;
}
.mybook>p:nth-of-type(2){
  font-size: 15px;
  color: #aba59a;
}
.mybook>p:last-of-type{
  text-align: right;
}
</style>